<template>
	<div>
		<div @click="goBaidu">go baidu</div>

		<div class="frame">
			<iframe
				id="myWebview"
				src="https://www.itying.com" style="position:fixed;width: 100%;height: 100%; border: none;" > </iframe>
		</div>
	</div>

</template>

<script lang="ts">
import { computed, defineComponent } from 'vue'
import { shell } from 'electron'
import { mapGetters, mapState, useStore } from "vuex";

export default defineComponent({
	name: "Page__Shell",
	data() {
		return {
			num: 1234567
		}
	},

	methods: {
		goBaidu() {
			shell.openPath("E:\\我的坚果云\\Axure");
			shell.openExternal("https://www.baidu.com");
		// https://www.baidu.com
		}
	},

	setup() {
		// 组合是API中使用store
		const store = useStore()

		const storeX = computed(() => store.state.moduleA.x)

		return {
			storeX
		}
	}
})
</script>

<style scoped lang="less">

</style>
